//-----------------------------------------------------------------// 
// (c) 2002 by Dedi Mulyadi <dedi@dr.com>                          // 
// All rights reserved                                             // 
// file: html1.js                                                  // 
//-----------------------------------------------------------------// 
   
function window_onload() { 
    var vWidth=315; 
	  vHeight=212; 
    var browserName = navigator.appName; 
    var browserVersion = parseInt(navigator.appVersion); 
    
    //alert("--"+browserName+" "+vWidth+" "+vHeight+"--"); 
    
    if(browserName == "Netscape" && browserVersion >= 3) { 
       vWidth=vWidth+0; 
	   vHeight=vHeight-15; 
	   //alert("--"+browserName+" "+vWidth+" "+vHeight+"--"); 
    } else if(browserName == "Microsoft Internet Explorer" && browserVersion >= 4) { 
       vWidth=vWidth+0; 
	   vHeight=vHeight+0; 
	   //alert("--"+browserName+" "+vWidth+" "+vHeight+"--"); 
    } else if(browserName == "Opera" && browserVersion >= 5) { 
       vWidth=vWidth+0; 
	   vHeight=vHeight+0; 
	   //alert("--"+browserName+" "+vWidth+" "+vHeight+"--"); 
    } else if(browserName == "Mozilla" && browserVersion >= 5) { 
       vWidth=vWidth+0; 
	   vHeight=vHeight-15; 
    }
    window.moveTo(2000,2000); 
    window.resizeTo(0,0); 
    this.close();
    window.open ( 
      "login.php", 
      "login", 
      "toolbar=no, location=no, directories=no,"+ 
      "status=no, menubar=no, scrollbars=no,"+ 
      "resizeable=no, width="+vWidth+", height="+vHeight 
    ); 
} 
 
function evTekan() { 
  window.close(); 
} 
 
function window_onresize() { 
   window.moveTo(2000,2000); 
   window.resizeTo(0,0); 
} 
 
//--- end of script --- 
